@layout("/common/_container.html",{js:["/assets/common/libs/pinyin/initials.js","/assets/common/libs/pinyin/pinyin.js","/assets/modular/system/dgdzxYusuan/zxYusuan.js","/assets/modular/system/dgdmdzx/mdzx_ys.js"]}){
<link rel="stylesheet" href="${ctxPath}/assets/common/css/pack.css?v=${constants.getReleaseVersion()}" media="all">
<style>
    .layui-card .layui-card-header {
        padding: 0;
    }
    .layui-card .layui-card-body .layui-card-body {
        padding: 15px 0;
    }
    .layui-elem-quote {
        border: none;
        border-bottom: 2px dashed #e5e5e5;
        background: #FFF;
        font-size: 24px;
        padding: 15px 0;
    }
    .layui-btn+.layui-btn {
        margin-left: 0;
    }
    .layui-card {
        min-height: calc(100vh - 300px);
    }
</style>
<div class="layui-body-header">
    <span class="layui-body-header-title">装修预算表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row">
        <div class="">
            <div class="layui-card fix">
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <blockquote class="layui-elem-quote">门店
                                        <span style="float: right">
                                            <button id="copyBtn" class="layui-btn layui-btn-primary layui-btn-sm">
                                                    新增门店
                                            </button>
                                            <button id="btnCopy" class="layui-btn layui-btn-primary layui-btn-sm">复制门店</button>

                                            <button id="refresh" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe669;</i>刷新
                                            </button>
                                        </span>
                                    </blockquote>
                                </div>
                                <div class="layui-card-body" style="margin-top: 5px">
                                    <div class="layui-form toolbar">
                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <input type="hidden" id="leftRowSelected" value=""/>
                                                <input id="condition" class="layui-input" type="text" placeholder="输入门店名或门店拼音首字母查询" style="min-width: 206px" />
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label label-title">预估状态</label>
                                                <div class="layui-input-block label-block  w-90">
                                                <select id="status">
                                                    <option value="">全部</option>
                                                    <option value="0">未预估</option>
                                                    <option value="1">已预估</option>
                                                </select>
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <button id="mdzx_btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                    <table class="layui-table" lay-skin="line" lay-even id="mdzx_ys_Table" lay-filter="mdzx_ys_Table"></table>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <blockquote class="layui-elem-quote">
                                        预算
                                        <span style="float: right">
                                        <button id="btnExp" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe67d;</i>导出</button>
                                        <button id="btnExcel" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe67d;</i>导入</button>
                                        <button id="initYuSuan" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe67d;</i>初始化</button>
                                        </span>
                                    </blockquote>

                                </div>
                                <div class="layui-card-body" style="margin-top: 5px">
                                    <div class="layui-form toolbar">
                                        <input id="btyBrandIdView" class="layui-input" type="hidden"/>
                                        <form id="zxChengbenForm" lay-filter="zxChengbenForm">
                                            <input id="btyZxMdzxId" name="btyZxMdzxId" class="layui-input" type="hidden"/>

                                        <div class="layui-form-item">
                                            <div class="layui-inline">
                                                <div class="layui-inline w-90">
                                                    <input id="btyZxMdzxIdDaoChu" class="layui-input" type="hidden" placeholder=""/>

                                                    <select name="yuSuanLock" lay-filter="yuSuanLock"
                                                            id="yuSuanLock"
                                                            lay-search="yuSuanLock">
                                                        <option value="">请选择状态</option>
                                                        <option value="1">🔒 锁定</option>
                                                        <option value="0">🔑 解锁</option>
                                                    </select>
                                                </div>

                                                <div class="layui-inline w-110">
                                                    <input id="yusuanLockPass" name="yusuanLockPass" size="15" placeholder="请输入锁定密码" type="text"
                                                           class="layui-input"/>
                                                </div>
                                                <div class="layui-inline">
                                                    <button id="lockYusuan" class="layui-btn icon-btn">
                                                        预算锁定/解锁
                                                    </button>
                                                </div>

                                                <div class="layui-inline w-110" >
                                                    <input id="yujiTouzi" name="yujiTouzi" placeholder="请输入预计投资" type="text"
                                                           class="layui-input" size="15"/>
                                                </div>

                                                <div class="layui-inline">
                                                    <button class="layui-btn icon-btn" lay-filter="btnSubmit" lay-submit>设置</button>
                                                </div>
                                                <div class="layui-inline">
                                                </div>
                                            </div>
                                        </div>
                                        </form>
                                    </div>
                                    <table class="layui-table" id="zxYusuanTable" lay-filter="zxYusuanTable"></table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

<script type="text/html" id="mdzx_tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="mdzx_edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>

</script>


<script id="statusTpl" type="text/html">
    {{# if(d.yusuanLock=="0"){ }}
    🔑
    {{# } else if(d.yusuanLock=="1"){ }}
    🔒
    {{# } }}
</script>
@}